package com.iqiyi.pps.epg.core.model.program;

import org.apache.commons.net.ntp.TimeStamp;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

/**
 * Created by karkarrotxu on 2015/8/31.
 */
@Entity
@Table(name = "program_stream_error_log")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class ProgramStreamError {
    private long id;
    private long channelId;
    private long programQipuId;
    private TimeStamp reqTime;
    private String errorMsg;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "channel_id")
    public long getChannelId() {
        return channelId;
    }

    public void setChannelId(long channelId) {
        this.channelId = channelId;
    }

    @Column(name = "program_qipu_id")
    public long getProgramQipuId() {
        return programQipuId;
    }

    public void setProgramQipuId(long programQipuId) {
        this.programQipuId = programQipuId;
    }

    @Column(name = "req_time")
    public TimeStamp getReqTime() {
        return reqTime;
    }

    public void setReqTime(TimeStamp reqTime) {
        this.reqTime = reqTime;
    }

    @Column(name = "error_msg")
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
